package cc.geguol.iodemo.bufferwr;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

/**
 * 作者：13687
 * 日期：2017/6/17
 * 项目：IODemo
 * 描述：包装字符输出流
 */
public class BufferWriterDemo {
	public static void main(String[] args) throws IOException {
		BufferedWriter bufferedWriter =  new BufferedWriter(new FileWriter("bufferedwriter.txt"));
		bufferedWriter.write("我爱六哈哈");
		bufferedWriter.newLine();// 换行
		bufferedWriter.write("我是新的一行");
		bufferedWriter.close();
	}
}
